{% extends 'PortalMainBundle::layout.html.twig' %}

{% block stylesheets %}
  {{ parent() }}
{% endblock %}
{% block javascripts %}
  {{ parent() }}
<script>  
  $(document).ready(function(){

  });  
</script>

{% endblock %}
{% block content %}
  {% render 'PortalInvoiceBundle:InvoiceComponent:showInvoiceByComponent' with {'invoiceId' : invoiceId} %}

<hr />
<div>

  <form action="{{path('goToBank')}}" method="POST" name="goToBankForm" id="goToBankForm">
    <table>
      <thead>
        <tr><th colspan=""></th></tr>
      </thead>
      <tbody>
        <tr>
          <td><label>Үлдэгдэл</label>
          </td>
          <td><input type="text" name="amount" id="amount" placeholder="Төлөх дүн" value="{{amount}}"/></td>
        </tr>
        <tr>
          <td><label>Банк сонгох</label></td>
          <td>
            <select name="bank" id="bank">
              {% for bank in bankArray %}
                <option value="{{bank.id}}">{{bank.name}}</option>
              {% endfor %}
              </select>
            </td>
          </tr>
          <tr>
            <td>
              <input type="submit" class="btn  btn-success" value="Картаар төлөх">
            </td>
          </tr>
        </tbody>
      </table>
      <input type="hidden" name="invoiceId" value="{{invoiceId}}" />
    </form>

  </div>

{% endblock %}